Get Phone by LID
Convert a WhatsApp LID to its corresponding phone number.
Authentication Required
Login to swap the placeholders with your real Instance ID and Access Token.
Log InNo query parameters required
This endpoint doesn't expect data in the URL.
Best practices
Store mapping of LID to Phone Number (PN) securely.
Use LIDs internally if you plan to support PNH (Phone Number Hiding).
Unmasking the Identity: LID to Phone
The /v2/lids/{lid} endpoint performs a reverse lookup, attempting to find the canonical phone number (@c.us) associated with a given Lookup ID.
🔒 Privacy Barriers
A common misconception is that this endpoint can "dox" any user. It cannot.
- Success: The API returns the phone number only if your account has already established a trust relationship with that user (e.g., they are in your contacts, or you share a group where numbers are visible).
- Failure: If the user is a stranger in a hidden community, this endpoint will likely return
nullor the same LID, because the phone number is cryptographically sealed from your view.
🛠️ Use Case: "One Identity"
If you support users moving across phone numbers:
- Storage: You store the LID as the user's primary key.
- Display: When you need to send an SMS fallback, you call this endpoint.
- Result: You get the current phone number associated with that LID, ensuring your SMS goes to the right device.
Request Parameters
Configure the parameters required to interact with this endpoint. All query and body arguments are listed below with their details.
URL Parameters
Passed in the URL query stringstring | Your unique WhatsApp Instance ID Example: | ||
string | Your API Access Token Example: | ||
string | The unique LID (@lid) Example: |
Request Samples
Use these ready-to-go code snippets to integrate our API into your project quickly and efficiently. Choose your preferred language and library.
Expected Responses
Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.
Example
{
"lid": "1234567890@lid",
"number": "201234567890"
}Command Palette
Search for a command to run...